<?php
namespace Gotcha\Core\Components\Debugging\Handlers {
    use Gotcha\Core\Components\Debugging\Logger;

    class Exception {
        public function exceptionHandler(\Exception $ex) {
            Logger::Log($ex->getMessage(), $ex->getTraceAsString());
        }

        public function setExceptionHandler() {
            set_exception_handler(array($this, 'exceptionHandler'));
        }
    }
}

